package com.baidu.mpks.role.vo;

import com.baidu.mpks.permission.dto.TreePermissionDto;
import com.baidu.mpks.permission.dto.TypePermissionDto;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import java.util.List;

@Data
public class RoleVO {

    private Integer id;
    @Length(
            max = 50
    )
    private String roleName;
    @Length(
            max = 200
    )
    private String description;
    @NotEmpty(
            message = "{permission.list.empty}"
    )
    private List<Integer> permissionListParam;
    private List<TreePermissionDto> treePermissionListParam;
    private List<TypePermissionDto> typePermissionListParam;
    private List<Integer> auditPermissionListParam;
    private String status;
}
